package com.bbzn.device.client.dao.workplan;

import com.bbzn.device.client.dataobject.WorkPlan;

import java.util.Date;
import java.util.List;

import com.bbzn.device.client.dto.index.PlanInfoDTO;
import org.apache.ibatis.annotations.Param;

public interface WorkPlanMapper {
    int deleteByPrimaryKey(Long id);

    int insert(WorkPlan record);

    int insertOrUpdate(WorkPlan record);

    int insertOrUpdateSelective(WorkPlan record);

    int insertSelective(WorkPlan record);

    WorkPlan selectByPrimaryKey(Long id);

    int selectCountPrimaryKey(@Param("id") Long id);

    int updateByPrimaryKeySelective(WorkPlan record);

    int updateByPrimaryKey(WorkPlan record);

    List<WorkPlan> findByAll(WorkPlan workPlan);

    List<PlanInfoDTO> findPlanInfoByUserId(@Param("userId") Long userId);

    int batchDel(@Param("list") List<Long> list);

    int updateBatch(List<WorkPlan> list);

    int updateBatchSelective(List<WorkPlan> list);

    int batchInsert(@Param("list") List<WorkPlan> list);
}